/**
 *菜单下路由查询
 */
'use strict';

const conn = require('../../libs/DB/Conn');
module.exports = async function (params) {
    let sql = `SELECT 
                r.*,
                sm.menu_path 
            FROM
                router r 
                LEFT JOIN sys_menu sm 
                ON r.menu_id = sm.menu_id 
            WHERE r.menu_id = ? `;
    let rec = await conn(sql, [params.menuId]);
    return { success: true, data: rec };
};
